package com.cjl.netty.model.constant;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * <p>
 * 常量
 * </p>
 *
 * @author cjl
 * @version 1.0
 * @since 2020-07-30 15:28
 */
public class Constant {
    public static final String USER_TOKEN = "userId";

    public static final Integer THEAD_SIZE = 10;

    public static Map<String, WebSocketServerHandshaker> webSocketServerHandshakesMap =
            new ConcurrentHashMap<String, WebSocketServerHandshaker>();

    public static Map<String, ChannelHandlerContext> onlineUserMap =
            new ConcurrentHashMap<>();
}
